package com.java.com.study8a2a1;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import com.example.help.myapplication.R;

public class BitmapActivity1 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bitmap1);

        ImageView imgV1= (ImageView) findViewById(R.id.imgV1);

        Bitmap bitmap1= BitmapFactory.decodeResource(getResources(),R.mipmap.un1);
        Bitmap bitmap2=Bitmap.createBitmap(bitmap1,0,0,1000,500);

       imgV1.setImageBitmap(bitmap2);


    }
}
